package com.yjxz.shop.common.util;

import java.util.Map;

public class AppUtil {

    private AppUtil() {
        throw new RuntimeException();
    }

    /**
     * 取常量中的Map值
     * 
     * @param typeMap
     * @param value
     * @return
     */
    public static String getData(Map<Integer, String> typeMap, Integer value) {
        for (Integer key : typeMap.keySet()) {
            if (key == value) {
                return typeMap.get(key);
            }
        }
        return "";
    }
}
